---
layout: example.html
title: Map Export
shortdesc: Example of exporting a map as a PNG image.
docs: >
  Example of exporting a map as a PNG image.
tags: "export, png, openstreetmap"
---
<div id="map" class="map"></div>
<div id="no-download" class="alert alert-danger" style="display: none">
  This example requires a browser that supports the
  <a href="http://caniuse.com/#feat=download">link download</a> attribute.
</div>
<a id="export-png" class="btn btn-default" download="map.png"><i class="fa fa-download"></i> Download PNG</a>
